home *** CD-ROM | disk | FTP | other *** search
/ C/C++ Users Group Library 1996 July / C-C++ Users Group Library July 1996.iso / vol_200 / 242_01 / 80751bit.lib < prev    next >
Text File  |  1989-01-11  |  2KB  |  75 lines

  1. ;
  2. ; This file defines names for the additional Special Function Registers
  3. ; (SFRs) of the Signetics 80C751 and their component bits where applicable.
  4. ;
  5. ; First, the additional SFRs:
  6. ;
  7. TL    EQU    08AH
  8. RTL    EQU    08BH
  9. TH    EQU    08CH
  10. RTH    EQU    08DH
  11. I2CON    EQU    098H
  12. I2DAT    EQU    099H
  13. I2CFG    EQU    0D8H
  14. I2STA    EQU    0F8H
  15.  
  16. ;
  17. ; Note that the following 8051 SFR's do not exist in the 80C751:
  18. ;
  19. ;    IP    P2    SCON    SBUF    TH0    TH1    TL0    TL1    TMOD
  20. ;
  21.  
  22. ;
  23. ; Now, the bits.  We benefit from my very loose definition of "alphabetic"
  24. ; here!
  25. ;
  26. GATE    BIT    TCON.7        ;TCON register bits -- Note that the 80C751's
  27. C\T    BIT    TCON.6        ;  TCON register is considerably different
  28. TF    BIT    TCON.5        ;  than the 8051's TCON register.
  29. TR    BIT    TCON.4
  30. I0E    BIT    TCON.3
  31. I0T    BIT    TCON.2
  32. I1E    BIT    TCON.1
  33. I1T    BIT    TCON.0
  34.  
  35. RDAT    BIT    I2CON.7        ;Read bits of the I2CON register.
  36. ATN    BIT    I2CON.6
  37. DRDY    BIT    I2CON.5
  38. ARL    BIT    I2CON.4
  39. STR    BIT    I2CON.3
  40. STP    BIT    I2CON.2
  41. MASTER    BIT    I2CON.1
  42.  
  43. CXA    BIT    I2CON.7        ;Write bits of the I2CON register.
  44. IDLE_W    BIT    I2CON.6
  45. CDR    BIT    I2CON.5
  46. CARL    BIT    I2CON.4
  47. CSTR    BIT    I2CON.3
  48. CSTP    BIT    I2CON.2
  49. XSTR_W    BIT    I2CON.1
  50. XSTP_W    BIT    I2CON.0
  51.  
  52. SLAVEN    BIT    I2CFG.7        ;Bits of the I2CFG register.
  53. MASTRQ    BIT    I2CFG.6
  54. CLRTI    BIT    I2CFG.5
  55. TIRUN    BIT    I2CFG.4
  56. CT1    BIT    I2CFG.1
  57. CT0    BIT    I2CFG.0
  58.  
  59. IDLE_R    BIT    I2STA.6        ;Bits of the I2STA register.
  60. XDATA    BIT    I2STA.5
  61. XACTV    BIT    I2STA.4
  62. MAKSTR    BIT    I2STA.3
  63. MAKSTP    BIT    I2STA.2
  64. XSTR_R    BIT    I2STA.1
  65. XSTP_R    BIT    I2STA.0
  66.  
  67. ;
  68. ; Note that the following 8051 SFR bits do not exist on the 80C751:
  69. ;
  70. ;    IE0    IE1    IT0    IT1    PS    PT0    PT1
  71. ;    PX0    PX1    RB8    REN    RI    SM0    SM1
  72. ;    SM2    TB8    TF0    TF1    TI    TR0    TR1
  73. ;
  74.  
  75.